package com.groupbuying.store.service;

import com.groupbuying.store.domain.StoreCheckoutCounterDO;

import java.util.List;
import java.util.Map;

/**
 * 收款台管理
 * 
 * @author wenguoqiang
 * @email 17081@mengtaigroup.com
 * @date 2019-01-25 09:25:19
 */
public interface StoreCheckoutCounterService {
	
	StoreCheckoutCounterDO get(String uuid);
	
	List<StoreCheckoutCounterDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(StoreCheckoutCounterDO storeCheckoutCounter);
	
	int update(StoreCheckoutCounterDO storeCheckoutCounter);
	
	int remove(String uuid);
	
	int batchRemove(String[] uuids);

	/**
	 * 通过storeUuid 查找list
	 * @param map
	 * @return
	 */
    List<StoreCheckoutCounterDO> queryListInStoreUuid(Map map);

	/**
	 * 通过收银台id 获取 商户id和 规则id
	 * @param params
	 * @return
	 */
	Map<String, Object> getStoreIdAndRuleIdByCounterId(Map<String, Object> params);

	/**
	 * 保存小程序码
	 * @param counterUuid
	 */
	public Map<String,String> saveCounterUnlimited(String counterUuid);
}
